<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- {{message}} -->
        
        <!-- <img src="img/FECD76F09C4EFFA7102ECDBC1795FB3B.png" alt="" v-show="isshow" > -->
        <img src="img/FECD76F09C4EFFA7102ECDBC1795FB3B.png" alt="" v-show="age>=18" >
<button @click="add">加</button>
        <input type="button" name="" id="" value="切换" @click="change">
        <!-- <button @click="change" value=""></button> -->
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

    <script>
        var app=new Vue({
            el:"#app",

            data:{
                message:"hhhh",
                isshow:false,
                age:17
            },
            methods: {
                change:function(){
                    this.isshow=!this.isshow
                },
                add:function(){
                    this.age++

                }
            }
        })
    </script>
    
</body>
</html>